Interface TcpConnection

All Superinterfaces:
IPCObject
All Known Implementing Classes:
TcpConnectionImpl

public interface TcpConnection extends IPCObject
Information provided by the PKI file:

    \class TcpConnection
    
    \brief TcpConnection for TCP connections made from TcpProcess's listen() and connect().
    
Author:
Auto-generated
  • Method Details

    • getLocalIp

      IPAddress getLocalIp()
      Information provided by the PKI file:
      
          \brief Get local Ip Address
          \return ip, local ip address
          
              
      Returns:
      IPAddress Returns a IPAddress
    • getLocalIpv6

      IPV6Address getLocalIpv6()
      Information provided by the PKI file:
      
          \brief Get local Ipv6 Address
          \return ipv6, local ipv6 address
          
              
      Returns:
      IPV6Address Returns a IPV6Address
    • getLocalPort

      int getLocalPort()
      Information provided by the PKI file:
      
          \brief Get local Port number
          \return int, port number
          
              
      Returns:
      int Returns a int
    • getRemoteIp

      IPAddress getRemoteIp()
      Information provided by the PKI file:
      
          \brief Get remote Ip Address
          \return ip, remote ip address
          
              
      Returns:
      IPAddress Returns a IPAddress
    • getRemoteIpv6

      IPV6Address getRemoteIpv6()
      Information provided by the PKI file:
      
          \brief Get remote Ipv6 Address
          \return ipv6, remote ipv6 address
          
              
      Returns:
      IPV6Address Returns a IPV6Address
    • getRemotePort

      int getRemotePort()
      Information provided by the PKI file:
      
          \brief Get remote port number
          \return int, remote port number
          
              
      Returns:
      int Returns a int
    • getRemoteIpString

      String getRemoteIpString()
      Information provided by the PKI file:
      
          \brief Get remote ip address in string format
          \return string, remote ip address
          
              
      Returns:
      String Returns a String
    • getState

      TcpConnectionState getState()
      Information provided by the PKI file:
      
          \brief get the tcp connection state
          \return TcpConnectionState
          CLOSED = 0,
          SYN_SENT = 1,
          SYN_RECEIVED = 2,
          ESTABLISHED = 3,
          LISTEN = 4,
          FIN_WAIT_1 = 5,
          TIMED_WAIT = 6,
          CLOSE_WAIT = 7,
          FIN_WAIT_2 = 8,
          LAST_ACK = 9,
          CLOSING = 10
          
              
      Returns:
      TcpConnectionState Returns a TcpConnectionState
    • accept

      void accept(boolean bAccepted)
      Information provided by the PKI file:
      
          \brief Accept the connection request
          \param bAccepted, bool- true to accept and false to reject
          
              
      Parameters:
      bAccepted - Takes in a parameter of bAccepted